package com.jemmyee.pizza.service;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jemmyee.core.dao.Page;
import com.jemmyee.pizza.dao.IPrepaidDao;
import com.jemmyee.pizza.entity.Prepaid;
@Service("prepaidService")
public class PrepaidServiceImpl implements IPrepaidService<Prepaid> {
	@Autowired
	private IPrepaidDao prepaidDao;
	public void delete(Prepaid entity) {
		// TODO Auto-generated method stub
		prepaidDao.delete(entity);
	}

	public void deleteAll(List<Prepaid> list) {
		// TODO Auto-generated method stub

	}

	public void deleteById(Serializable id) {
		// TODO Auto-generated method stub

	}

	public List<Prepaid> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	public List<Prepaid> findByCriteria(DetachedCriteria criteria) {
		// TODO Auto-generated method stub
		return null;
	}

	public Prepaid findById(Serializable id) {
		// TODO Auto-generated method stub
		return prepaidDao.findById(id);
	}

	public List<Prepaid> findByProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	public Page findPageByCriteria(DetachedCriteria detachedCriteria,
			int pageSize, int startIndex,String order) {
		// TODO Auto-generated method stub
		return prepaidDao.findPageByCriteria(detachedCriteria, pageSize, startIndex, order);
	}

	public void save(Prepaid entity) {
		prepaidDao.save(entity) ;

	}

	public void update(Prepaid entity) {
		// TODO Auto-generated method stub
		prepaidDao.update(entity);
	}

}
